<extend name="Public/base"/>

<block name="body">

    <div class="row">
        <div class="col-md-12">

            <div class="tabbable tabbable-custom boxless">
                <form id="form" action="{:U()}" method="post" class="form-1">

                    <div class="tab-content">

                        <div class="portlet box blue">
                            <div class="portlet-title">
                                <div class="caption"><i class="fa fa-reorder"></i>
                                    {$_GET['sid']?'编辑':'新增'}学期
                                    [&nbsp;父导航：<a href="{:U('Courseware/headfild')}">学期信息</a>&nbsp;]
                                </div>
                                <div class="tools">
                                    <a href="javascript:;" class="collapse"></a>
                                    <a href="#portlet-config" data-toggle="modal" class="config"></a>
                                    <a href="javascript:;" class="reload"></a>
                                    <a href="javascript:;" class="remove"></a>
                                </div>
                            </div>
                            <div class="portlet-body form">
                                <!-- BEGIN FORM-->

                                <div class="form-body">
                                    <div class="form-group">
                                        <label>标题<span class="check-tips"></span></label>
                                        <input type="text" class="form-control input-xlarge" name="title"
                                               value="{$info.title|default=''}">
                                    </div>

                                    <div class="form-group">
                                        <label>开始时间<span class="check-tips"></span></label>
                                        <div class="input-group date form_date">
                                                <input name="start_time" type="text" readonly
                                                       class="form-control input-xlarge">
												<span class="input-group-btn input-xlarge">
                                                    <button class="btn default date-set" type="button">
                                                        <i class="fa fa-calendar"></i>
                                                    </button>
												</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label>结束时间<span class="check-tips"></span></label>
                                        <div class="input-group date form_date">
                                            <input name="end_time" type="text" readonly
                                                   class="form-control input-xlarge">
												<span class="input-group-btn input-xlarge">
                                                    <button class="btn default date-set" type="button">
                                                        <i class="fa fa-calendar"></i>
                                                    </button>
												</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label>备注<span class="check-tips">（描述信息）</span></label>
                                        <input type="text" class="form-control input-xlarge" name="remark"
                                               value="{$info.remark|default=''}">
                                    </div>

                                </div>
                                <if condition="$info neq null">
                                    <input type="hidden" name="hid" value="{$info.hid}"/>
                                </if>



                                <div class="form-actions fluid ">
                                    <div class="col-md-offset-3 col-md-9">
                                        <button class="btn green submit-btn " id="submit" type="submit"
                                                target-form="form-1">确 定
                                        </button>
                                        <button class="btn default btn-return"
                                                onclick="javascript:history.back(-1);return false;">返 回
                                        </button>
                                    </div>
                                </div>

                                <!-- END FORM-->
                            </div>
                        </div>

                    </div>

                </form>
            </div>
        </div>
    </div>
</block>

<block name="script">

    <script type="text/javascript" src="__STATIC__/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="__STATIC__/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js"></script>
    <script type="text/javascript" src="__STATIC__/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript" src="__STATIC__/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="__STATIC__/scripts/form-components.js"></script>
    <script src="__STATIC__/scripts/app.js"></script>



    <!-- BEGIN PAGE LEVEL SCRIPTS -->
    <script src="__STATIC__/scripts/app.js"></script>
    <!-- END PAGE LEVEL SCRIPTS -->
    <script>
        jQuery(document).ready(function () {
// initiate layout and plugins
            App.init();
            FormComponents.init();
            highlight_subnav('{:U('Database/semesterlist')}');
        });
    </script>
</block>